package com.csdj.service.impl;

import lombok.Data;

import java.util.List;

/**
 * @Author: 周茜
 * @CreateTime: 2024-12-16
 * @Description:
 * @Version: 1.0
 */
@Data
public class PageResponse <T>{
    private long total;       // 总记录数
    private int pages;        // 总页数
    private List<T> data;     // 当前页数据

    public PageResponse(long total, int pages, List<T> data) {
        this.total = total;
        this.pages = pages;
        this.data = data;
    }
}
